import java.util.HashMap;

public class WebSiteFactory {
    private static HashMap<String,WebSite> pool = new HashMap<>();

    public WebSite getWebSite(String type){
        if (pool.get(type)==null){
            pool.put(type,new ConcreteWebsite(type));
        }
        return pool.get(type);
    }

    public int WebSiteCount(){
        return pool.size();
    }
}
